// Class include
#include "CWatchdog.hpp"

// System includes

// Other includes
#include "CTrace.hpp"

// Forward declaration inckudes
#include "CCommand.hpp"

CWatchdog* CWatchdog::mSelf = 0;

CWatchdog::CWatchdog()
: CObserver()
{
}

CWatchdog::~CWatchdog()
{
}

void CWatchdog::handleEvent(const CCommand& cmd)
{
   if (COMMAND_SOURCE_ARDUINO == cmd.getSource())
   {

   }
}

CWatchdog* CWatchdog::getInstance()
{
   if (mSelf == 0)
   {
      mSelf = new CWatchdog();
   }

   return mSelf;
}